import request from "@/utils/request";

// 查询发票附件列表
export function listInvoiceAttachment(query) {
  return request({
    url: "/contract/InvoiceAttachment/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询发票附件详细
export function getInvoiceAttachment(invoiceAttachmentId) {
  return request({
    url: "/contract/InvoiceAttachment/" + invoiceAttachmentId,
    method: "get",
    handleError: true,
  });
}

// 新增发票附件
export function addInvoiceAttachment(data) {
  return request({
    url: "/contract/InvoiceAttachment",
    method: "post",
    data: data,
  });
}

// 修改发票附件
export function updateInvoiceAttachment(data) {
  return request({
    url: "/contract/InvoiceAttachment",
    method: "put",
    data: data,
  });
}

// 删除发票附件
export function delInvoiceAttachment(invoiceAttachmentId) {
  return request({
    url: "/contract/InvoiceAttachment/" + invoiceAttachmentId,
    method: "delete",
  });
}
